<?php

return new \Phalcon\Config(
  array(
    'staticResource' => 'http://bst.s/',
    'site' => array(
      'name'      => '百市通',
      'url'       => 'http://www.bsito.cn/',
      'staticResource' => 'http://bst.s/',
        'serviceResource'=>array(
            'yh'=>'http://sd53.bsito.da:8080',
            'qywz'=>'http://sd53.bsito.da:8081',
            'xs'=>'http://sd55.bsito.da:8080',
            'cg'=>'http://sd55.bsito.da:8081',
            'dm'=>'http://sd54.bsito.da:8080'

        ),
        'serviceResourceForTest'=>array(
            'yh'=>'http://s151.bst.da:8080',
            'qywz'=>'http://s151.bst.da:8081',
            'xs'=>'http://s153.bst.da:8080',
            'cg'=>'http://s153.bst.da:8081',
            'dm'=>'http://s152.bst.da:8080'

        ),
    ),
    'server' => array(
        'redis'     => array(
            'ip'=>'10.10.101.33',
            'port'=>'6379',
            'auth'=>'redis'
        ),
        'tfs'=>array(
          'nginx-tfs'=>
              array(
                'ip'=>'10.10.101.33',
                'port'=>'7500',
              ),
          'appkey'=>'tappkey00001',
          'appid'=>1,
        ),
        'ERROR_onlyForDebug'=>array(//TODO  这里所有内容都用于测试，需要删除
            'bst_db_test'=>
                array(
                    'adapter'     => 'Mysql',
                    'host'        => '10.10.101.82',
                    'username'    => 'root',
                    'password'    => 'root',
                    'dbname'      => 'bst_db_test',
                    'charset' => 'utf8', //数据库字符集 utf8
                ),
        ),
        'ERROR_onlyForDebugForTest'=>array(//TODO  这里所有内容都用于测试，需要删除
            'bst_db_test'=>
                array(
                    'adapter'     => 'Mysql',
                    'host'        => '10.10.101.81',
                    'username'    => 'root',
                    'password'    => 'root',
                    'dbname'      => 'bst_db',
                    'charset' => 'utf8', //数据库字符集 utf8
                ),
        ),
    ),
    'application'       => array(
    'modelsDir'         => __DIR__ . '/../../app/models/', //用于指示代码生成器models目录在哪里
    'controllersDir'   => __DIR__ . '/../../app/controllers/',//用于指示代码生成器controllersDir目录在哪里
    'viewsDir'          => __DIR__ . '/../../app/views/',//用于指示代码生成器controllersDir目录在哪里
    'cacheDir'          => __DIR__ . '/../../app/cache/',
    'baseUri'           => '/',
    'cryptKey'          => '#ldjB$=dp?.ak//j1V$a!d#d',// 只支持16, 24 或 32位
    'registerDir'      =>array(
        'default'          => array(
            'responses'        => __DIR__ . '/../../app/library/responses',
            'modelsDir'        => __DIR__ . '/../../app/models/',
            'controllersDir'  => __DIR__ . '/../../app/controllers/',
            'pluginsDir'       => __DIR__ . '/../../app/plugins/',
            'libraryDir'       => __DIR__ . '/../../app/library/',
            'viewsDir'          => __DIR__ . '/../../app/views/',
            'serviceDir'       => __DIR__ . '/../../app/service/',
            'customhelperDir'  => __DIR__ . '/../../app/customhelper/',
            'const'             => __DIR__ . '/../../app/library/const',
            ),
      ),
      //是否debug模式
      'debug'          => true,
      //高级调试模式开关。
      'SeniorDebug' => false,
    ),
));
